#include "unit.h"

Unit::Unit()
	: Object(){
	hp=5;
}

Unit::Unit(int new_x, int new_y, int new_hp)
	: Object(new_x, new_y){
	hp=new_hp;
}

void Unit::set_weight(int weight){
	this->weight = weight;
}

int Unit::get_weight(){
	return weight;
}

int Unit::get_hp(){
	return hp;
}

bool Unit::is_alive(){
    if(hp>0)
    	return true;
    return false;
}
